package org.i1510.joeone.dao;
import org.i1510.common.dao.IBaseJpaDao;
import org.i1510.joeone.po.JoeSubj2Class;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
@Repository
public interface IJoeSubj2ClassDao extends IBaseJpaDao<JoeSubj2Class, String>{
    /**
    *@Author Rambo
    *@Desc：通过 主题 AND 品类 查找唯一的规划数
    *@param jsubjectId
    *@param jclassId
    *@return TODO
    *@Version  IJoeSubj2ClassDao.java,v 1.1 2015年6月17日 下午4:41:48 
    */
    @Query("SELECT a from JoeSubj2Class a WHERE a.jsubjectId =:jsubjectId AND a.jclassId =:jclassId") 
    public JoeSubj2Class findBySubj2Class(@Param("jsubjectId")String jsubjectId,@Param("jclassId")String jclassId); 
/********************以下是标准接口*********************************************************/    
    @Query("SELECT a from JoeSubj2Class a WHERE a.docId =:docId") 
     public JoeSubj2Class findById(@Param("docId")String docId); 
/********************以上是标准接口*********************************************************/    
}
 